﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Text
{
    class Library
    {
        public Library(int id,string title,double price)
        {
            Id = id;
            Title = title;
            Price = price;
        }
        public int Id { get; set; }
        public string Title { get; set; }
        public double Price { get; set; }

        public void Print()
        {
            Console.WriteLine("编号:{0}\n书名:《{1}》\n售价:{2}",Id,Title,Price);
        }

        ~Library()
        {
            Console.WriteLine("析构函数");
        }
    }
}
